package com.leyou.search.pojo;

import com.leyou.common.pojo.PageResult;
import com.leyou.item.pojo.Brand;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @author: Mr_Sun
 * @Date: 2018/9/17
 * @Time: 19:01
 */
public class SearchResult extends PageResult<Goods> {
    List<Map<String, Object>> categories;
    private List<Brand> brands;
    List<Map<String, Object>> paramList;
    public SearchResult(long total, int totalPages, List<Goods> content, List<Map<String, Object>> categories, List<Brand> brands, List<Map<String, Object>> paramList) {
        super(total,totalPages,content);
        this.categories = categories;
        this.brands = brands;
        this.paramList = paramList;
    }

    public List<Map<String, Object>> getParamList() {
        return paramList;
    }

    public void setParamList(List<Map<String, Object>> paramList) {
        this.paramList = paramList;
    }

    public SearchResult(Long total, List<Goods> items, List<Map<String, Object>> categories, List<Brand> brands) {
        super(total, items);
        this.categories = categories;
        this.brands = brands;
    }

    public SearchResult(Long total, Integer totalPage, List<Goods> items, List<Map<String, Object>> categories, List<Brand> brands) {
        super(total, totalPage, items);
        this.categories = categories;
        this.brands = brands;
    }

    public List<Map<String, Object>> getCategories() {
        return categories;
    }

    public void setCategories(List<Map<String, Object>> categories) {
        this.categories = categories;
    }

    public List<Brand> getBrands() {
        return brands;
    }

    public void setBrands(List<Brand> brands) {
        this.brands = brands;
    }
}
